package stat

// 销售统计表
type StatDayOrder struct {
	Id           uint    `gorm:"column(id);auto;PRIMARY_KEY"`
	StandardDate string  `gorm:":(standard_date)" description:"日期" json:"standard_date"`
	CompanyId    uint64  `gorm:":(company_id)" description:"商家id" json:"company_id"`
	ShopId       uint64  `gorm:":(shop_id)" description:"门店id" json:"shop_id"`
	Proid        uint64  `gorm:":(proid)" description:"商品id" json:"proid"`
	CateId       int     `gorm:":(cate_id)" description:"分类id" json:"cate_id"`
	DayNum       uint    `gorm:":(day_num)" description:"相差天数" json:"day_num"`
	SupplierId   int     `gorm:":(supplier_id)" description:"代理商ID" json:"supplier_id"`
	Num          float32 `gorm:":(num)" description:"商品销量" json:"num"`
	SumPrice     float32 `gorm:":(sum_price)" description:"总销售金额" json:"sum_price"`
	SumCostPrice float32 `gorm:":(sum_cost_price)" description:"商品总成本" json:"sum_cost_price"`
	AvgPrice     float32 `gorm:":(avg_price)" description:"均价" json:"avg_price"`
	Profit       float32 `gorm:":(profit)" description:"毛利" json:"profit"`
	ProfitRate   float32 `gorm:":(profit_rate)" description:"毛利率" json:"profit_rate"`
	CreateTime   string  `gorm:":(create_time)" description:"添加时间" json:"create_time"`
	UpdateTime   string  `gorm:":(update_time)" description:"修改时间" json:"update_time"`
}
